<script setup>
import { GetDeptUserAPI } from '@/api/common/index.js'

const props = defineProps({
  multiple: {
    type: Boolean,
    default: false,
  },
})
const list = ref([])

const value = ref()
// 获取用户列表
const getList = async () => {
  try {
    const { data: res } = await GetDeptUserAPI()
    console.log(res, 'res')
    list.value = res
  } finally {
  }
}

getList()
</script>

<template>
  <el-tree-select
    v-model="value"
    :data="list"
    :render-after-expand="false"
    style="width: 240px"
    :props="{
      children: 'children',
      label: 'label',
      value: 'id',
    }"
  />
</template>
